package com.shuyuntu.login.service;

import com.shuyuntu.login.dao.FileDao;
import com.shuyuntu.login.entity.File;
import com.shuyuntu.login.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: login
 * @Date: 2018-07-20 10:33
 * @Author: Mr.Deng
 * @Description:
 */
@Service
public class FileService {

    @Autowired
    private FileDao fileDao;

   /* public boolean verifyFile(File file) {
        if (fileDao.findbyname(file.getName()).isEmpty()) {
            return false;
        } else {
            return true;
        }
    }*/


    public String save(File file) {

        fileDao.save(file);
        return "文件上传成功";


    }
}
